package com.yileiqian.alg;

public class TestTwoPower {

	public static boolean test(int i) {
		if(i < 1){
			return false;
		}
		return (i & (i - 1)) == 0;
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		for (int i = 0; i < 100; i++) {
			System.out.println(i + " " + test(i));
		}
	}

}
